import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import './assets/css/common.css'
import './assets/css/reset.css'
import 'element-plus/theme-chalk/el-loading.css'
import filters from './utils/filter';
// * 代表的是所有；
import * as directives from './directives/index' // 引入我们配置好的指令
const app = createApp(App);
app.config.globalProperties.$filters = filters; // 引入过滤器
type DirectType = keyof typeof directives; // 指定类型
Object.keys(directives).forEach(item => {
    app.directive(item, directives[<DirectType>item]);
})
app.use(router).mount('#app')
